﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace Titler.FPControls
{
    /// <summary>
    /// Interaction logic for CtrlFlatPack.xaml
    /// </summary>
    public partial class FlatPackCtrl : UserControl
    {
        public FlatPackCtrl()
        {
            InitializeComponent();
        }


        public string TitleReturn(bool Flatpack)
        {
            System.Windows.Forms.MessageBox.Show(ReelMaterial.Text + ", " + EncapsLength.Text);

            return EncapsLength.Text + "MM X " + EncapsWidth.Text + "MM " + EncapsMaterial.Text + " ENCAPSULATION, " +
                (Flatpack == false ? "" : WorkingFluid.Text == "NONE" ? "NO WORKING FLUID, " : "WORKING FLUID IS " + WorkingFluid.Text + ", ") +
                "SUPPLIED ON " + ReelMaterial.Text + " SPOOL WITH SKIDS " + ReelMaxOD.Text + " INCH MAXIMUM OD X " +
                ReelWidth.Text + " INCH WIDTH X " + ReelShaftOD.Text + " INCH SHAFT OD, " + 
                (Flatpack == false || OtherOptions.Text == "NONE" ? "" : OtherOptions.Text);
        }

        private void Control_Add_Item(object sender, RoutedEventArgs e)
        {
            ControlMethods.Control_Add_Item(sender);
        }

        private void Control_Add_Item(object sender, SelectionChangedEventArgs e)
        {

        }
    }
}
